//
//  LBFaceSkinDetect.h
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 2/27/13.
//  Copyright (c) 2013 UIT. All rights reserved.
//

#ifndef OpenGLGame_LBFaceSkinDetect_h
#define OpenGLGame_LBFaceSkinDetect_h

#define NUM_DATA_IN_A_FACE 10

#include "LBFilter.h"

class LBFaceSkinDetect : public LBFilter{
    int numFace;
    float* faceBoundData;     //data is x, y, width, height, it use texture coordinate map (0, 0, in bottom left, width, height equal 1).
    float averageSkinColor[4];
    
    int numFaceUniform;
    int faceBoundDataUniform;
    int averageSkinColorUniform;
public:
    LBFaceSkinDetect();
    ~LBFaceSkinDetect();
    void setFaceBoundData(int numFace, float* faceBoundData);
    void setAverageSkinColor(float red, float green, float blue);
    
    int getNumFace();
    float* getFaceBoundData();
    float* getAverageSkinColor();
};

#endif
